﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainForm.Master" AutoEventWireup="true" CodeBehind="AuditHistory.aspx.cs" Inherits="WF.Web.Pages.WorkflowInfo.AuditHistory" %>
<%@ MasterType VirtualPath="~/MainForm.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Title" runat="server">
审批历史记录
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Other_head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Path" runat="server">
查看审批历史
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Main" runat="server">
<div class="ititle">
    <h4>审批历史：</h4>
</div>
<div class="dataGrid">
    <asp:ListView ID="dataListView" runat="server" DataSourceID="ObjectDataSource1" DataKeyNames="ID"
        EnableModelValidation="true" >
        <LayoutTemplate>
            <table cellspacing="0" class="Grid">
                <tr>
                    <th>
                        步骤名称
                    </th>
                    <th>
                        审批时间
                    </th>
                    <th>
                        审批人域帐号
                    </th>
                    <th>
                        审批人姓名
                    </th>
                    <th>
                        审批结果
                    </th>  
                    <th width="25%">
                        备注
                    </th>                                               
                </tr>
                <asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%# Eval("ActivityName")%>
                </td> 
                <td>
                    <%# Eval("ApprovalDate", "{0:yyyy-MM-dd hh:MM:ss}")%>
                </td>                                      
                <td>
                    <%# Eval("DomainAccount")%>&nbsp;
                </td>      
                <td>
                    <%# Eval("UserName")%>
                </td>  
                <td>
                    <%# Eval("ApprovalResult")%>
                </td>          
                <td>
                    <%# Eval("ApprovalComment")%>
                </td>                        
            </tr>
        </ItemTemplate>
        <EmptyItemTemplate>
            <table class="Grid">
                <tr>
                    <td>&nbsp;                            
                    </td>
                </tr>
            </table>
        </EmptyItemTemplate>
    </asp:ListView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="GetAuditHistoryByBizDataID" 
        TypeName="WF.ViewModels.WorkflowInfo.AuditHistoryVM"> 
        <SelectParameters>
            <asp:QueryStringParameter Name="bizDataID" QueryStringField="bizDataID"/>
        </SelectParameters>          
    </asp:ObjectDataSource>  
</div>
</asp:Content>
